package spring_mvc.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class SpringMvcController {

    @RequestMapping("/index1")
    public String index(){
        return "index1";
    }

    @RequestMapping("/index2")
    @ResponseBody
    public String index2(){
        return "hello index2";
    }

}
